﻿@inherits ClientSectionCompontentBase

<MRow>
    <MCol Md=12 Class="text-center">
        <UploadAvatar @bind-Value="Dto.LogoUri" Avatar Size="80" WhenFileChangeUpload />
    </MCol>
    <MCol Md=12>
        <SUrlTextField @bind-Value="Dto.ClientUri" Label="@T("ClientURL")" />
    </MCol>
    <MCol Md=12 Class="py-0">
        <MCheckbox @bind-Value="Dto.RequireConsent" Label="@T("RequireConsent")" TValue="bool"></MCheckbox>
    </MCol>
    <MCol Md=12 Class="pt-0">
        <MCheckbox @bind-Value="Dto.AllowRememberConsent" Label="@T("AllowRememberConsent")" TValue="bool"/>
    </MCol>
    <MCol Md=12>
        <STextField @bind-Value="Dto.ConsentLifetime" Tooltip="@T("ConsentLifetimeTips")" Type="number" Label="@T("ConsentLifetime")" Clearable=false />
    </MCol>
</MRow>

@code {
    [Parameter]
    public ClientConsentDto Dto { get; set; } = new();

    [Parameter]
    public EventCallback<ClientConsentDto> DtoChanged { get; set; }
}
